//
//  SYPickerView.h
//  ChatDemo-UI2.0
//
//  Created by zz on 17/2/17.
//  Copyright © 2017年 zz. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger,SYPickerMode) {
    
    /**选择学生*/
    SYPickerModeStudent,
    
    /**选择月份*/
    SYPickerModeMonth,
};

@interface SYPickerView : UIView

@property (nonatomic,strong) UIPickerView *picker;

@property (nonatomic,strong) UIToolbar *toolbar;

@property (nonatomic) SYPickerMode pickerMode;

@property (nonatomic,copy) void (^sureBlock)(NSDictionary * returnDict,NSInteger indexOfType,NSInteger indexOfDetailType); //确定回调

@property (nonatomic,strong) NSMutableArray *sourceArray;
@property (nonatomic,strong) NSMutableArray *detailArray; //详情数组

@property (nonatomic,assign) NSInteger indexOfType;//当前默认选中的
@property (nonatomic,assign) NSInteger indexOfDetailType;//当前默认选中的具体

- (void)show;

- (void)showAnimate;

@end
